package com.snape.service;

import com.snape.entity.Room;

import java.util.Map;

/**
 * Created by liuqingcan_snape on 2017/4/2.
 */
public interface RoomService {
    public int selectCategoryIdByRoomCategoryName(String name);

    public Map<String,Object> selectCategoryInfoByCategoryName(String name);
    public Map<String,Object> selectCategoryInfoByCategoryId(int id);
    public Map<String,Object> selectAllCategoryInfo();


    public Map<String,Object> selectOnePageRoomByCategoryId(int id);

    public Map<String,Object> selectRoomByCategotyidAndPagenumber(int id ,int pageNumber,int postNumber);

    public Map<String,Object> selectRoomIdByRoomName(String name);

    public Map<String,Object> selectValidDateByRoomId(int id);

    public Map<String,Object> insertRoomInfo(Room room);

}
